<?php

namespace app\admin\model\short\chain;

use think\Model;


class Config extends Model
{

    

    

    // 表名
    protected $name = 'short_chain_config';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];

    public function domain()
    {
        return $this->belongsTo('Domain', 'domain_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
    public function group()
    {
        return $this->belongsTo('Group', 'group_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }

    public function getLxTypeList()
    {
        return ['1' => '单用户轮询', '2' => '固定轮询', '3' =>'总用户轮询'];
    }


    public function typeList()
    {
        return ['1' => '短链', '2' => '全描述','3' => '关键词描述'];
    }





}
